﻿#pragma once
#ifndef GRADEDB_H_
#define GRADEDB_H_

#include "Grade.h"
#include "Database.h"
#include <string>
#include <list>
class GradeDB :public Database
{

public:
	GradeDB();
	Grade selectByGradeId(const std::string &i);
	list<Grade> selectAll();//查询所有的成绩
	list<Grade> selectAllByGradeId(const std::string &i);
	void deleteByGradeId(const std::string &i);
	void update(Grade &stu);
	void insert(Grade &stu);
	~GradeDB();
};
#endif // !GRADEDB_H_
